//
//  ZZConfig.h
//  Project two framework
//
//  Created by 张峥 on 16/7/21.
//  Copyright © 2016年 张峥. All rights reserved.
//

#import <Foundation/Foundation.h>

//宽度，高度
#define NAV_HEIGHT 44
#define NAVST_HEIGHT 64
#define TAB_BAR_HIGHT self.tabBar.frame.size.height
#define BAR_BUTTON_WIDTH  CGRectGetWidth(self.view.bounds) / 3

#define SCREEN_Bounds ([UIScreen mainScreen].bounds)
#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)

#define VW_WHALF(x) CGRectGetWidth(x)
#define VH_WHALF(y) CGRectGetHeight(y)
#define MID_X(x) CGRectGetMidX(x)
#define MID_Y(y) CGRectGetMidY(y)
#define MIN_X(x) CGRectGetMinX(x)
#define MIN_Y(y) CGRectGetMinY(y)
#define MAX_X(x) CGRectGetMaxX(x)
#define MAX_Y(y) CGRectGetMaxY(y)


//图片
#define IMGNAME(name) [UIImage imageNamed:name]
#define IMAGE(name) [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:A ofType:nil]]

//颜色
#define COLOR(R, G, B, A) [UIColor colorWithRed:R/55.0 green:G/255.0 blue:B/255.0 alpha:A]
#define barGrayColor [UIColor colorWithRed:240/255.0 green:240/255.0 blue:240/255.0 alpha:1.000]
/**主色调*/
//#define tintColor [UIColor colorWithRed:17/255.0 green:168/255.0 blue:187/255.0 alpha:1]
#define NAVI_BAR_COLOR [UIColor colorWithRed:0.000 green:0.224 blue:0.573 alpha:1.000]
#define BLACK_C [UIColor blackColor]
#define WHITE_C [UIColor whiteColor]
